package com.bw.day11springbootzye3Test;

import com.bw.bean.Type;
import com.bw.service.TypeService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runner.Runner;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;
import java.util.Map;

@SpringBootTest
@RunWith(SpringRunner.class)
public class day11springbootzye3test {
    @Autowired
    TypeService typeService;
    @Test
    public void TowFindAll(){
        List<Type> types = typeService.TowFindAll();
        for (Type type : types) {
            System.out.println(type);
        }
    }
}
